import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/pages/Main.vue'
Vue.use(Router)
export default new Router({
//mode: 'history',
  routes: [
    {
      path: '/',
      name: '登陆',
      component: Main,
      redirect: "/kbc/h5/login"
    },{
      path: '/kbc/h5/login',
      name: '登陆',
      component: resolve => require(['@/pages/Login'], resolve)
    },{
    	path:"/kbc/h5/home",
    	component:Main,
    	children:[
    	     		{
                    path: '/kbc/h5/home',
                    name: '',
//                  meta:{show:true},
										meta: {show:true,keepAlive: false },
                    component: resolve => require(['@/pages/Index'], resolve)
              },
    	        {
                    path: '/kbc/h5/user',
                    name: '我的',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/Me'], resolve)
              },{
                    path: '/kbc/h5/UserCenter',
                    name: '用户中心',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/userCenter'], resolve)
              },{
                    path: '/kbc/h5/Certification',
                    name: '实名认证',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/Certification'], resolve)
              },{
                    path: '/kbc/h5/MobileBind',
                    name: '手机绑定',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/MobileBind'], resolve)
              },{
                    path: '/kbc/h5/WechatBind',
                    name: '微信绑定',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/WechatBind'], resolve)
              },{
                    path: '/kbc/h5/AplipayBind',
                    name: '支付宝绑定',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/AplipayBind'], resolve)
              },{
                    path: '/kbc/h5/EmailBoxBind',
                    name: '邮箱绑定',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/EmailBoxBind'], resolve)
              },{
                    path: '/kbc/h5/BankCarBind',
                    name: '银行卡绑定',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/BankCarBind'], resolve)
              },{
                    path: '/kbc/h5/LoginPwdUpdate',
                    name: '登录密码修改',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/LoginPwdUpdate'], resolve)
              },{
                    path: '/kbc/h5/TradePwdUpdate',
                    name: '交易密码修改',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/TradePwdUpdate'], resolve)
              },{
                    path: '/kbc/h5/MyTeam',
                    name: '我的团队',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/MyTeam'], resolve)
              },{
                    path: '/kbc/h5/MyShare',
                    name: '我的分享',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/MyShare'], resolve)
              },{
                    path: '/kbc/h5/info',
                    name: '个人信息',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/user/Info'], resolve)
              },{
                    path: '/kbc/h5/Wallet',
                    name: '钱包',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/wallet/Index'], resolve)
              },{
                    path: '/kbc/h5/TotalWallet',
                    name: '所有钱包',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/wallet/TotalWallet'], resolve)
              },{
                    path: '/kbc/h5/HistoryWallet',
                    name: '交易记录',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/wallet/HistoryWallet'], resolve)
              },{
                    path: '/kbc/h5/HistoryDetail',
                    name: '交易记录详细',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/wallet/HistoryDetail'], resolve)
              },{
                    path: '/kbc/h5/TradingCenter',
                    name: '交易中心',
                    meta: { keepAlive: true },
                    component: resolve => require(['@/pages/tradingCenter/Index'], resolve)
              },{
                    path: '/kbc/h5/MyTradeBuySole',
                    name: '买入/卖出',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/tradingCenter/MyTradeBuySole'], resolve)
              },{
                    path: '/kbc/h5/MyTradeChart',
                    name: 'KBC行情图表',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/tradingCenter/MyTradeChart'], resolve)
              },{
                    path: '/kbc/h5/TradeDetail',
                    name: '交易详细',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/tradingCenter/TradeDetail'], resolve)
              },{
                    path: '/kbc/h5/DoneDetail',
                    name: '成交记录详细',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/tradingCenter/DoneDetail'], resolve)
              },{
                    path: '/kbc/h5/RecordDetail',
                    name: '违约记录详细',
                    meta: { keepAlive: false },
                    component: resolve => require(['@/pages/tradingCenter/RecordDetail'], resolve)
              }]
    }]
})

